class CreateUserToolSettingWeatherForecasts < ActiveRecord::Migration
  def self.up
    add_column :user_tool_settings, :city_id, :integer
    add_column :user_tool_settings, :forecasted_hour, :integer, :default => 17
    add_column :user_tool_settings, :sms_count, :integer, :default => 0
    add_column :user_tool_settings, :emails_count, :integer, :default => 0
    add_column :user_tool_settings, :smed_at, :timestamp
    add_column :user_tool_settings, :emailed_at, :timestamp       
  end

  def self.down
    remove_columns :user_tool_settings,
      :city_id,
      :forecasted_hour,
      :sms_count,
      :emails_count,
      :smed_at,
      :emailed_at      
  end
end
